﻿using Anke.SHManage.MSSQLDAL.FixedAssetsDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Anke.SHManage.BLL.FixedAssetsBLL
{
    public class FIXEDAssetsDeliveryBLL
    {
        /// <summary>
        /// 获取固定资产出库单列表
        /// </summary>
        /// <param name="pageSize"></param>
        /// <param name="pageIndex"></param>
        /// <param name="assetTypeID"></param>
        /// <param name="assetID"></param>
        /// <param name="txtAssetID"></param>
        /// <param name="DateStart"></param>
        /// <param name="DateEnd"></param>
        /// <returns></returns>
        public object GetDeliveryList(int pageSize, int pageIndex, string assetTypeID, string materialID, string assetID, DateTime DateStart, DateTime DateEnd)
        {
            return new FIXEDAssetsDeliveryDAL().GetDeliveryList(pageSize, pageIndex, assetTypeID, materialID, assetID, DateStart, DateEnd);
        }
        
        /// <summary>
        /// 新增出库单
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public bool InsertEditPageData(Model.FixedAssetsModel.FIXED_DeliveryInfo info)
        {
            return new FIXEDAssetsDeliveryDAL().InsertEditPageData(info);
        }

        /// <summary>
        /// 根据资产编码获取对应资产基本信息数据
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        public Model.FixedAssetsModel.FIXED_MatetialInfo GetMaterialData(string Code)
        {
            return new FIXEDAssetsDeliveryDAL().GetMaterialData(Code);
        }

        /// <summary>
        /// 根据出库单编码获取对应资产出库单数据
        /// </summary>
        /// <param name="Code"></param>
        /// <returns></returns>
        public Model.FixedAssetsModel.FIXED_DeliveryInfo GetDeliveryData(string Code)
        {
            return new FIXEDAssetsDeliveryDAL().GetDeliveryData(Code);
        }

        /// <summary>
        /// 出库单编辑
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public bool UpdateEditPageData(Model.FixedAssetsModel.FIXED_DeliveryInfo info)
        {
            return new FIXEDAssetsDeliveryDAL().UpdateEditPageData(info);
        }
    }
}
